package com.sean.mpstudy.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sean.mpstudy.entity.UserModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mybatis-generator
 * @since 2021-02-01
 */
public interface UserDao extends BaseMapper<UserModel> {

    List<UserModel> selectAll(@Param(Constants.WRAPPER) Wrapper<UserModel> wrapper);

    IPage<UserModel> selectUserPage(Page<UserModel> page, @Param(Constants.WRAPPER) Wrapper<UserModel> wrapper);

}
